package com.cpr.ams.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

/**
 * Service_results
 * @author 
 */
@ApiModel(value="com.cpr.ams.bean.ServiceResults")
public class ServiceResults implements Serializable {
    /**
     * 编号
     */
    @ApiModelProperty(value="编号")
    private Integer id;

    /**
     * 服务过程描述
     */
    @ApiModelProperty(value="服务过程描述")
    private String processDesc;

    /**
     * 服务结果评估
     */
    @ApiModelProperty(value="服务结果评估")
    private String resultsAssess;

    /**
     * 服务记录id
     */
    @ApiModelProperty(value="服务记录id")
    private Integer serviceId;

    /**
     * 服务人员id
     */
    @ApiModelProperty(value="服务人员id")
    private Integer personnelId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProcessDesc() {
        return processDesc;
    }

    public void setProcessDesc(String processDesc) {
        this.processDesc = processDesc;
    }

    public String getResultsAssess() {
        return resultsAssess;
    }

    public void setResultsAssess(String resultsAssess) {
        this.resultsAssess = resultsAssess;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public Integer getPersonnelId() {
        return personnelId;
    }

    public void setPersonnelId(Integer personnelId) {
        this.personnelId = personnelId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ServiceResults other = (ServiceResults) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getProcessDesc() == null ? other.getProcessDesc() == null : this.getProcessDesc().equals(other.getProcessDesc()))
            && (this.getResultsAssess() == null ? other.getResultsAssess() == null : this.getResultsAssess().equals(other.getResultsAssess()))
            && (this.getServiceId() == null ? other.getServiceId() == null : this.getServiceId().equals(other.getServiceId()))
            && (this.getPersonnelId() == null ? other.getPersonnelId() == null : this.getPersonnelId().equals(other.getPersonnelId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getProcessDesc() == null) ? 0 : getProcessDesc().hashCode());
        result = prime * result + ((getResultsAssess() == null) ? 0 : getResultsAssess().hashCode());
        result = prime * result + ((getServiceId() == null) ? 0 : getServiceId().hashCode());
        result = prime * result + ((getPersonnelId() == null) ? 0 : getPersonnelId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", processDesc=").append(processDesc);
        sb.append(", resultsAssess=").append(resultsAssess);
        sb.append(", serviceId=").append(serviceId);
        sb.append(", personnelId=").append(personnelId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}